package com.neo.springcloud.alibaba.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @ClassName: AccountDao
 * @Title: cloud2021
 * @Package: com.neo.springcloud.alibaba.dao
 * @Description:
 * @Author: Kisen
 * @Date: 2021/11/25 22:40
 */
@Mapper
public interface AccountDao {

    //扣减账户余额
    int decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
